﻿@model IList<PageControlModelTypeParameter>

<ol class="b-form__rows ul-reset g-clear">
@for (int i = 0; i < Model.Count;i++)
{    
    <li class="b-form__row g-clear">        
    @if (Model[i].IsSimple)
    {
        @Html.EditorFor(m => m[i].Value, Model[i].Editor, Html.GetClientNameForAdminViewElement(Model[i].Id), Model[i].AdditionalValues)
    }
    else
    {
        <label for="@Html.GetClientNameForAdminViewElement(Model[i].Id, Model[i].Name)">@Model[i].Name</label>
        @Html.EditorFor(m => m[i].Value, Model[i].Editor, Html.GetClientNameForAdminViewElement(Model[i].Id, Model[i].Name), Model[i].AdditionalValues)
    }
    </li>
}
</ol>